﻿using System;
using System.Collections.Generic;
using NServiceBus.Unicast.Transport;

namespace NsbExtensions.Tests.Stubs
{
    public class TestTransport : ITransport
    {
        #region ITransport Members

        public void Dispose()
        {
        }

        public event EventHandler<TransportMessageReceivedEventArgs> TransportMessageReceived;

        public void Start()
        {
        }

        public void ChangeNumberOfWorkerThreads(int targetNumberOfWorkerThreads)
        {
            throw new NotImplementedException();
        }

        //We'll just take that back, thank you very much
        public void Send(TransportMessage m, string destination)
        {
        }

        public void ReceiveMessageLater(TransportMessage m)
        {
        }

        public int GetNumberOfPendingMessages()
        {
            return 0;
        }

        public void AbortHandlingCurrentMessage()
        {
            return;
        }

        public IList<Type> MessageTypesToBeReceived { get; set; }


        public int NumberOfWorkerThreads
        {
            get { return 1; }
        }

        public string Address
        {
            get { return "Test"; }
        }

        #endregion
    }
}